#ifndef MENU_H
#define MENU_H

#include <QWidget>
#include"music.h"
//#include"mainwindow.h"
namespace Ui {
class menu;
}

//struct song
//{
//    char songname[128];   //歌曲名
//    char singer[128];     //歌手
//    char album_name[128]; //专辑
//    int duration2;      //时间
//    int music_id;       //音乐id
//};
class menu : public QWidget
{
    Q_OBJECT

public:
    explicit menu(QWidget *parent = nullptr);
    ~menu();

private slots:
    void on_pushButton_clicked();

private:
    Ui::menu *ui;
    music * p1;
public:
    QTcpSocket * clientSocket;

public slots:
    void clearpmodel();
    void showlike(song s);
    void paintEvent(QPaintEvent *event);
};

#endif // MENU_H
